

def fun2(a, b):
    s = 20
    for i in range(a, b):
        s += i
    return s

def fun1(a, b):
    def sum_fun(x, y):
        return x+y
    
    s = 30
    for i in range(a, b):
        s += sum_fun(s, i)
    return s
